package Texas.Test;

import org.junit.*;
import Texas.*;

public class TableTest {
	private Table table;
	
	@Before public void setUp() {
		table = new Table(new Player("Test"), 3);
	}
	
	@Test public void testDealCards() {
		boolean countIsEqual = true;
		
		table.dealCards(2);
		for(Player player : table.getPlayers()) {
System.out.println(player.getCards().size());
			if(player.getCards().size() != 2) {
				countIsEqual = false;
			}
		}
		Assert.assertTrue(countIsEqual);

		table.dealCards(3);
		
		if(table.getCommunityCards().size() != 3) {
			countIsEqual = false;
		}
		Assert.assertTrue(countIsEqual);		
	}
}
